package com.gykj.rtm;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.Import;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import com.gykj.redis.config.RedisClusterConf;
@SpringBootApplication
@EnableTransactionManagement
@MapperScan(basePackages = "com.gykj.rtm.mapper")
@EnableDiscoveryClient
@EnableFeignClients
@Import(value={RedisClusterConf.class})
public class GykjRtmApplication {
	protected static Logger logger = LoggerFactory.getLogger(GykjRtmApplication.class);

	public static void main(String[] args) {
		SpringApplication.run(GykjRtmApplication.class, args);
		logger.warn(GykjRtmApplication.class.getName()+ "============= SpringBoot Start Success =============");
	}
}
